﻿@{
    ViewBag.Title = "kt";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model RBS.Core.Model.D_Order
@using (Html.BeginForm("Kt","Sm"))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.H_Id) 
    @Html.HiddenFor(model => model.Id)  
    <div id="content"> 
        <div id="mainContent1">
            <div class="tab-content destineorder">
                <dl>
                    <dt><b>*</b>预订吃饭日期</dt>
                    <dd>
                        @Html.TextBoxFor(model => model.ReserveDate, null, new { @class = "input   w200", onfocus = "WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-{%d}'})" })  
                         
                        @Html.TextBoxFor(model => model.ReserveTime,null,new{ @class = "input   w150"}) 
                    </dd>
                </dl>
                <dl>
                    <dt><b>*</b>就餐人数</dt>
                    <dd>
                        @Html.TextBoxFor(model => model.DineNum, null, new { @class = "input normal w100", datatype = "n", value = "" })
                        <span class="Validform_checktip">*就餐人数</span>
                    </dd>
                </dl>
                <dl>
                    <dt><b>*</b>餐位情况</dt>
                    <dd class="ltable"> 
                         @Html.TextBoxFor(model => model.DineTable, null, new { @class = "input normal w100" })
                         @Html.TextBoxFor(model => model.Dinecondition, null, new { @class = "input normal w100" })
                    </dd>
                </dl> 
                <dl>
                    <dt><b>*</b>联系人</dt>
                    <dd>

                        @Html.TextBoxFor(model => model.ContactUser, null, new { @class = "input normal w100" })
                        <span class="Validform_checktip">*联系人</span>

                    </dd>
                </dl>
                <dl>
                    <dt><b>*</b>用户手机</dt>
                    <dd> 
                        @Html.TextBoxFor(model => model.ContactMobile, null, new { @class = "input normal w100" })
                        <span class="Validform_checktip">*用户手机</span> 
                    </dd>
                </dl>
                <dl>
                    <dt>订单备注</dt>
                    <dd> 
                        @Html.TextBoxFor(model => model.OrderRemark, null, new { @class = "input normal" })
                        <span class="Validform_checktip">*订单备注</span> 
                    </dd>
                </dl>
                <div class="destineorderbtn">
                    @Html.Hidden("SetOrder")
                     @Html.Hidden("orderid")
                    <input type="submit" id="BtnNextOrder" value="提交"  class="btn"   /> 
                </div>
            </div>
        </div>

        <div id="sideContent">
        </div>
    </div>
     
    <script>
        /*$.ajaxSetup({
            async: false
        }); */
 
        function OnSuccess(s) {
           // alert(s); 
            document.getElementById('orderid').value = s;
        }
      /*  var api = frameElement.api, W = api.opener; 
        api.button({
            id: 'valueOk',
            name: '确定',
            callback: ok
        }); 
        function ok() {
            $("#BtnNextOrder").submit();
            W.document.getElementById('orderid').value = document.getElementById('orderid').value; 
            W.document.getElementById('aAddOrder').text = "修改订单"; 
        };  */
    </script> 
        
} 